﻿
<Dropdown class="avatarDropDown" Placement="@PlacementType.BottomCenter" BoundaryAdjustMode="@TriggerBoundaryAdjustMode.None">
	<Overlay>
		<Menu @ref="@Menu" OnMenuItemClicked="OnAvatarDropDownSelectAsync"  >
			<MenuItem @key="@("userCenter")" Key="userCenter"  OnClick="ToUserCenter">
				个人中心
			</MenuItem>
			<MenuDivider />
			<MenuItem @key="@("logout")" Key="logout">
				退出登录
			</MenuItem>
		</Menu>
	</Overlay>
	<ChildContent>
		<div class ="avatarDiv">
	   <Avatar Size="large" Src="@(CurrentUserProfile.Avatar??("/20180801190650_pyytg.jpg"))" />
			<span style="margin-left:5px;font-weight:bold">@CurrentUserProfile.NickName</span>
  </div>
		
	</ChildContent>
</Dropdown>